package com.txx.design.factory.factory;

import java.util.ArrayList;

/*
 * @description //TODO 抽象工厂模式 参考Collection中 iterator  ArrayList iterator
 * @return
 * @exception
 * @author tuxx
 * @date 2019/3/15 15:43
 */
public class Test {

    public static void main(String[] args) {
        DataBaseFactory db = new OracleDataBaseFactory();
        DataBase dataBase = db.getDataBase();
        dataBase.getDb();

        DataBaseFactory db1 = new MysqlDataBaseFactory();
        DataBase dataBase1 = db1.getDataBase();
        dataBase1.getDb();
    }
}
